package com.szy.mapper;

import com.szy.pojo.Article;

import java.util.List;

/**
* @author Administrator
* @description 针对表【article(博客表)】的数据库操作Mapper
* @createDate 2025-06-16 16:29:41
* @Entity com.szy.pojo.Article
*/
public interface ArticleMapper {
    void addArticle(Article article);
    List<Article> queryAll();
    Article queryArticleAndAuthor(int articleId);
    List<Article> queryAllAndAuthor();
    /**
     *  查看热门文章
     *  count：文章个数
     * */
    List<Article> queryPopularArticles(int count);

    /**
     * 查看最新博客
     * @return
     */
    Article queryNewestArticle();
}




